<?php
$global01 = "全局变量01";
function test()
{
    $local01 = "局部变量01";
    echo "local01=$local01";
    echo "<br>";
    echo "global01=$global01";
}
test();
?>